import { generateId } from "@/utils";
export const mixinOpenedKey = {
  watch: {
    // 有bug 晚点改
    "$store.state.app.sidebar.opened": {
      handler: function(newData, oldData) {
        setTimeout(() => {
          this.mixinBoderKey = generateId();
        }, 500);
      },
      immediate: true
    }
  },
  data() {
    return {
      mixinBoderKey: generateId()
    };
  },
  mounted() {
    this.$nextTick(() => {
      this.mixinBoderKey = generateId();
    });
  }
};
